package net.flyinggroup.scs.gitter.service.impl.utils;

import net.flyinggroup.scs.gitter.controller.vm.UserVM;
import net.flyinggroup.scs.gitter.domain.User;

public class UserMapper {
    private UserMapper() {
    }

    public static UserVM toViewModelUnits(User domainUser) {
        if (domainUser == null) return null;
        return new UserVM(domainUser.getId(), domainUser.getName());
    }
}
